package com.controller;

import com.mapper.entity.Order;
import com.mapper.entity.mapper.DealerMapper;
import com.mapper.entity.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.cloud.controller
 * @date:2021/4/19
 */
@Controller
public class TestController {


    @Autowired
    DealerMapper dealerMapper;

    @Autowired
    OrderMapper orderMapper;


    @GetMapping(value = "create")
    public void test() {
        Order order = new Order();
        order.setUserId(1);
        order.setOrderId(2);
        orderMapper.insert(order);
    }
}
